/*
 * Created by BAC IT Deustche Bank
 * User: Sergio Vasquez
 * Date: 5/11/2009
 * Time: 6:39 PM
 * 
 * Description:
 * 
 */
using IScheduler.Core.Properties;
using System;
using System.Configuration;

namespace IScheduler.Core.Services
{
	/// <summary>
	/// Description of ServiceManager.
	/// </summary>
	public static class ServiceManager
	{

		/*
         * Logging Service
         */ 
        static ILoggingService loggingService = new Log4NetLoggingService();
		public static ILoggingService LoggingService 
        {
			get { return loggingService; }
			set {
				if (value == null)
					throw new ArgumentNullException();
				loggingService = value;
			}
		}

        /*
         * Setting Service
         */ 
		static ISettingService settings = new SettingServiceSupport();
        public static ISettingService SettingService
        {
			get { return settings; }
			set {
				if (value == null)
					throw new ArgumentNullException();
				settings = value;
			}
		}

        /*
         * Util Service
         */ 
        static IUtilService util = new UtilServiceSupport();
        public static IUtilService UtilService
        {
            get { return util; }
            set
            {
                if (value == null)
                    throw new ArgumentNullException();
                util = value;
            }
        }	
	}
}
